<style scoped lang="scss">
	.xy-checkbox-group {
	}
</style>
<template>
    <checkbox-group @change="checkboxChange">
        <label class="item" :key="key" v-for="(item,key) in list">
            <view>
                <checkbox :value="item.value" :checked="false" />
            </view>
            <view>{{item.title}}</view>
        </label>
    </checkbox-group>
</template>
<script>
export default {
    name: 'xyCheckGroup',
    components: {
    },
    props: {
		value: '',
		list: {
			default: []
		}
    },
    data() {
        return {
        }
    },
    created: function () {
    },
    methods: {
        checkboxChange(evt){
			this.$emit('input', evt.target.value);
		}
    }
}
</script>
